class Solution
{
public:
    static int getSum(int a, int b)
    {
        int sum = 0;
        int num = a^b;
        int carry = (a&b)<<1;
        while(carry)
        {
            num = a^b;
            carry = (a&b)<<1;
            a = num;
            b = carry;
        }
        return num;
    }
};